package com.qf.aop2204.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVo {
    @NotBlank//要求name不能为空白字符
    private String name;
    @NotEmpty
    @Size(min = 6,max = 10)
    private String password;
    @Email
    private String email;
    @Pattern(regexp = "133.*")
    private String phone;
    @Min(1) @Max(130)
    private Integer age;
}
